This script demonstrates a use of an “on quit” handler in a script application. The handler puts up an alert confirming the Quit command; if the user cancels, the quit is not continued to the application and it does not quit.